﻿namespace Vben.Base.Sys.Org.User;

[SugarTable("sys_org_user", TableDescription = "组织架构-用户")]
[Description("组织架构-用户")]
public class SysOrgUser : BaseMainEntity
{
    [SugarColumn(ColumnDescription = "部门ID", IsNullable = true, Length = 36)]
    public string depid { get; set; }

    [SugarColumn(ColumnDescription = "昵称", IsNullable = true, Length = 16)]
    public string ninam { get; set; }

    [SugarColumn(ColumnDescription = "层级", IsNullable = true, Length = 512)]
    public string tier { get; set; }

    [SugarColumn(ColumnDescription = "职务", IsNullable = true, Length = 64)]
    public string job { get; set; }

    [SugarColumn(ColumnDescription = "用户名", IsNullable = true, Length = 32)]
    public string usnam { get; set; }

    // [JsonIgnore]
    [SugarColumn(ColumnDescription = "密码", IsNullable = true, Length = 64, IsOnlyIgnoreUpdate = true)]
    public string pacod { get; set; }

    [SugarColumn(ColumnDescription = "邮箱", IsNullable = true, Length = 64)]
    public string email { get; set; }

    [SugarColumn(ColumnDescription = "手机号", IsNullable = true, Length = 32)]
    public string monum { get; set; }
    
    
    [SugarColumn(ColumnDescription = "性别", IsNullable = true, Length = 8)]
    public string sex { get; set; }

    [SugarColumn(ColumnDescription = "排序号", IsNullable = true)]
    public int ornum { get; set; }

    [SugarColumn(ColumnDescription = "标签", IsNullable = true, Length = 32)]
    public string label { get; set; }

    [SugarColumn(ColumnDescription = "用户类型", IsNullable = true, Length = 32)]
    public int type { get; set; }

    [SugarColumn(ColumnDescription = "缓存标记", IsNullable = true)]
    public bool catag { get; set; }
    
    [SugarColumn(ColumnDescription = "最后登录时间", IsNullable = true)]
    public DateTime lotim { get; set; }

    [SugarColumn(ColumnDescription = "最后登录IP", IsNullable = true, Length = 20)]
    public string loip { get; set; }
    
    [SugarColumn(ColumnDescription = "扩展字段1", IsNullable = true, Length = 32)]
    public string ex1 { get; set; }
    
    [SugarColumn(ColumnDescription = "扩展字段2", IsNullable = true, Length = 32)]
    public string ex2 { get; set; }
    
    [SugarColumn(ColumnDescription = "扩展字段3", IsNullable = true, Length = 32)]
    public string ex3 { get; set; }
    
    [SugarColumn(ColumnDescription = "扩展字段4", IsNullable = true, Length = 32)]
    public string ex4 { get; set; }
}